package warbots.entities.artifacts;


import java.awt.Point;

import warbots.entities.units.Unit;
import warbots.gameplay.Map;


/**
 * @author Ido Adler.
 */
public class HammerArtifact extends Artifact
{
    
    private int _power;
    
    /**
     * TODO: description
     * 
     * @param user
     * @param name
     * @param duration
     * @param instant
     */
    public HammerArtifact(final Unit user, final String name, final int length)
    {
        super(user, name, 1, false);
        _power = 5;
    }
    
    /**
     * @see warbots.entities.artifacts.Artifact#execute(warbots.gameplay.Map,
     *      java.awt.Point)
     */
    @Override
    public void execute(final Map world, final Point target)
    {
        if (_duration > 0)
            System.out.println(_parent.getName() + ":" + getName()+"["+_power + "]->" + target.toString());
        _duration--;
    }
}
